package com.hjy.demo.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName( value = "sys_user", resultMap = "user_role_map")
public class User implements Serializable {
    @TableId(type=IdType.AUTO)
    @TableField("usr_id")
    private Long usrId;
    private String usrName;
    private String usrPassword;
    private Long usrRoleId;
    private Integer usrFlag;
    private String usrPerms;

    @TableField(exist = false)
    private Role role;

    public User(Long usrId, String usrName, String usrPassword, Long usrRoleId, Integer usrFlag) {
        this.usrId = usrId;
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrRoleId = usrRoleId;
        this.usrFlag = usrFlag;
    }

    public User(){}


}
